package com.corejava.training.inheritence;

public class Honda extends Car {

	// honda class specific field
	private String brand;
	
	// overriding Car's method
	
	public void maxSpeed()
	{
		System.out.println("this is returned from Honda class");
		System.out.println("and max speed is " + getSpeed());
	}
	
	// overloading Car's method
	
	public void maxSpeed(int i){
		
	}
}
